﻿using Microsoft.EntityFrameworkCore;
using Sold.Logs.Entities.Logs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace sqliteDemo.Context
{
    public class DataContext : DbContext
    {
        public DataContext(DbContextOptions<DataContext> options) : base(options) { }
        
        public DbSet<Log> Log { get; set; }

        /// ///EF迁移文件命令///
        /// 生成迁移文件：Add-Migration
        /// 删除sqlite的db文件：Drop-Database
        /// 移除迁移文件：Remove-Migration
        /// 更新sqlite的db文件：Update-Database
    }

    public class LogContext : DbContext
    {
        public LogContext(DbContextOptions<LogContext> options) : base(options) { }
        public DbSet<Log> Log { get; set; }
        public DbSet<History> History { get; set; }
        public DbSet<Send> Send { get; set; }
        public DbSet<WarnConfig> WarnConfig { get; set; }
        public DbSet<WarnHistory> WarnHistory { get; set; }
    }
}
